import request from './request'
import type { loginParams, registerParams, tokenValidateParams } from '@/router/login.types'

export const userLogin = (params: loginParams) => {
  return request.post('/user/login', params)
}

export const userRegister = (params: registerParams) => {
  return request.post('/user/register', params)
}

export const userTokenValidate = (params: tokenValidateParams) => {
  return request.post('/user/validateToken', params)

}